FROM python:3.8-alpine

WORKDIR /home
COPY . /home

RUN pip install -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com -r requirements.txt
RUN  rm -rf /home/env 

# RUN  python manage.py makemigrations  &&  python manage.py migrate
# CMD [ "python", "./manage.py", "runserver", "0.0.0.0:8000"]

RUN chmod +x run.sh
EXPOSE 8000
CMD ["/bin/sh","run.sh"]  
# 容器启动时默认执行的命令





# docker build -t lghost/bind9:latest . # build images
# docker push lghost/bind9:latest # 推送到dockerhub